package com.th.common.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 通用分页响应对象
 * @Author tuhang
 * @PackageName nswcy-crowdsource-back
 * @Package com.th.common.page
 * @Date 2022/10/3 17:33
 * @Version 1.0
 */
@Data
@ApiModel("通用分页响应对象")
@AllArgsConstructor
@NoArgsConstructor
public class CommonPageResponse<T> {

    @ApiModelProperty("总条数")
    private Long total;

    @ApiModelProperty("当前页数据")
    private List<T> data;
}
